/*
==========
Test.cpp - Implementation of the Test and TestResult classes
==========
*/
#include "Test.h"

/*
==========
class TestResult
- Wraps the results of a particular test
==========
*/
TestResult::TestResult( ) :
	m_test_name("unnamed test"), m_passed( true ), m_test_message( "Passed" )
{
	;
}
TestResult::TestResult( const std::string& test_name, bool pass, const std::string& test_message) : 
	m_test_name( test_name ), m_passed( pass ), m_test_message( test_message )
{
	;
}
bool TestResult::Passed() const
{
	return m_passed;
}
std::string TestResult::GetTestName( ) const
{
	return m_test_name;
}
std::string TestResult::GetTestMessage( ) const
{
	return m_test_message;
}
void TestResult::SetPassed( bool passed )
{
	m_passed = passed;
}
void TestResult::SetTestName( const std::string& name )
{
	m_test_name = name;
}
void TestResult::SetTestMessage( const std::string& message )
{
	m_test_message = message;
}

/*
==========
class Test
- Wraps the mechanics of a particular test
==========
*/
Test::Test( const std::string& name ) : 
	m_name( name )
{
	;
}
std::string Test::GetName ( ) const
{
	return m_name;
}